package com.ziyun.pop.modules.storeFavouredPrice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.storeFavouredPrice.entity.StoreFavouredPriceDetailEntity;
import io.renren.common.utils.PageUtils;
import com.ziyun.pop.modules.storeFavouredPrice.entity.StoreFavouredPriceEntity;
import io.renren.common.utils.R;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 门店价格账套
 *
 * @author jiangli
 * @email 
 * @date 2018-09-25 15:04:37
 */
public interface StoreFavouredPriceService extends IService<StoreFavouredPriceEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R useRebate(Long[] favouredIds,BigDecimal rebate);

    R setStart(Long favouredId, Boolean value);

    R deleteByIds(Long[] favouredIds,Long sellerId);

    R detailData(Long favouredId,Long sellerId);

    R saveStepPrice(Long detailId, String stepPriceData);

    R saveDetail(StoreFavouredPriceDetailEntity storeFavouredPriceDetailEntity);

    R deleteRow(Long detailId);

    R updateDetail(StoreFavouredPriceDetailEntity storeFavouredPriceDetailEntity);

    BigDecimal getDiscountRateByMemberId(Map<String,Object> map);
}

